package br.com.portalecbahia.model;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class News implements Serializable{

	private static final long serialVersionUID = 1L;

	private Long id;
	
	private Long position;

	private String title;
		
	private Date date;
	
	private String urlImage;
		
	private String content;
				
	private String urlWebsite;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public Long getPosition() {
		return position;
	}

	public void setPosition(Long position) {
		this.position = position;
	}

	public String getTitle() {
		return title;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}

	public Date getDate() {
		return date;
	}
		
	public String getDateFormat(){
		SimpleDateFormat dt = new SimpleDateFormat("d  MMMM  yyyy - HH:mm",new Locale("pt", "BR")); 
		return dt.format(date); 
	}


	public void setDate(Date date) {
		this.date = date;
	}

	public String getUrlImage() {
		return urlImage;
	}

	public void setUrlImage(String urlImage) {
		this.urlImage = urlImage;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getUrlWebsite() {
		return urlWebsite;
	}

	public void setUrlWebsite(String urlWebsite) {
		this.urlWebsite = urlWebsite;
	}
						
}
